<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="container" style="width: 100%;margin: 0px;padding:0;border: none  ">
    <!--default默认主题 暗色调inverse-->
    <nav class="navbar navbar-default" style="background: #ddd;height: 50px">
        <div class="navbar-header col-md-1" style="margin-right:10px;">
            <a href="#" class="navbar-brand">悦知</a>
        </div>
        <div id="nav1" class="collapse navbar-collapse col-md-12">
            <ul class="nav navbar-nav">
                <!--active加深-->
                <li><a href="/yuezhi/index.action">首页</a></li>
                <li><a href="/yuezhi/Ware/bank.action" >题库广场</a></li>
                <li><a href="/yuezhi/comliper.action">在线编译</a></li>

                <li><a href="/yuezhi/parper/start.action">能力测试</a></li>
                <li><a href="/yuezhi/rank/load.action">排行榜</a></li>


                <li>
                        <c:if test="${sessionScope.user==null}">
                            <a href="/yuezhi/login/load.action" style="margin-left: 720px">登录</a>
                        </c:if>
                        <c:if test="${sessionScope.user!=null}">
                            <a href="/yuezhi/user/info.action"  style="margin-left: 720px">个人中心</a>
                        </c:if>
                </li>
            </ul>
            <!--搜索框-->
            <form action="" class="navbar-form navbar-right" >
                <input type="text" placeholder="搜索" class="form-control"/>
                <a class="btn btn-primary">搜索</a>
            </form>
        </div>
    </nav>
</div>


